#include <gtest/gtest.h>


#include "memdb/impl/simple/Meta.h"

using namespace memdb::impl::simple;

TEST(MetaTest, test){
	std::string path = ".";

	Meta meta(path);;
	meta.open();

	meta.insert("k1", "v1");
	meta.insert("k2", "v3");
  /*  
	meta.iterator()->foreach([](auto & item){
			std::cout << item->first << ":" << item->second << std::endl;
	});*/
	
	meta.remove("k1");

	meta.close();

  meta.destroy();
}
